IHipFS.isPathValid

Does some default validations in the path then it executes the extra ones.

interface IHipFS
bool
isPathValid
(
string path
,
bool expectsFile = true
,
bool shouldVerify = true
)

Parameters

path string

The path to validate

expectsFile bool

Checks whether that path is a file or a directory.

shouldVerify bool

Flags for executing extra validations

Return Value

Type: bool

Whether the path is valid

Meta